<?php get_header('page');?>
<script type="text/javascript" src="<?php bloginfo('template_url');?>/js/mytravelagent.js"></script>
<style>
	.contact_error
	{
		display:none;
	}
	.contact_error_show
	{
		display:block;
		color:red;
		font-weight:bold;
		float:left;
		margin-left:5px;
	}
 .content-box-1
{
			margin-top:15px;	
}
.details-info span.price
{
	font-weight:bold;
	float:left;
	height:20px;
	line-height:20px;
}
.details-info a
{
	width:100%;
}
</style>
<body>
<div id="topbg"></div>
<div id="container">
	<div id="header">
    	<?php include TEMPLATEPATH.'/controllers/banner/controller-banner.php';?>
        <?php require_once TEMPLATEPATH.'/views/menu/view-menu.php';?>
    </div>
    
    <div id="mid">
    	<div id="box-content">
            <!-- begin breadcrumb -->
            <?php require_once TEMPLATEPATH.'/views/breadcrumb/view-breadcrumb.php';?>
            <!-- end #breadcrumb -->
             <?php 
             if(wp_verify_nonce($_POST['act_submit_form_travel_agent'],'act_submit_form_travel_agent'))
			 {
			 	if($_POST['company_security'] == $_SESSION['ma_xac_nhan'])
				{
					$_SESSION['booking_hote_data'] = null;
					$resultagent = null;
			 		include TEMPLATEPATH.'/views/book/process-travel-agent.php';
				}
				else 
				{
					$_SESSION['booking_hote_data'] = $_POST;
					$resultagent = 'Sorry. The security code invalid.';
					include TEMPLATEPATH.'/views/book/view-agents.php';	
				}	
			 }
			 else 
			 {
			 	$_SESSION['booking_hote_data'] = null;
			 	include TEMPLATEPATH.'/views/book/view-agents.php';	
			 }
             ?>
        </div>
        
        <?php get_sidebar();?>
    </div>
    
    <?php //include TEMPLATEPATH.'/views/testimonial/view-home-testimonial.php';?>
    <?php get_footer('page');?>
